package com.example.demo.util;

/**
 * 错误代码及信息
 * @author SUN
 *
 */
public enum ResultStatus {
	//通用状态
	SUCCESS(0,"成功"),
	ERROR(-1,"系统繁忙"),
	REQUEST_NOT_EXIST(-2,"请求地址不存在"),
	PARAM_ERROR(1,"参数异常"),
	HAS_BAD_WORD(9404,"包含敏感词汇")
	
	;
	private int code;
	
	private String message;

	private ResultStatus(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
